39385d379f71a9944ec22b88bb1017d0fc46389c,fcrepo-http-commons/src/main/java/org/fcrepo/http/commons/exceptionhandlers/WebApplicationExceptionMapper.java,WebApplicationExceptionMapper,toResponse,#WebApplicationException#,43

Before Change


                "WebApplicationException intercepted by WebApplicationExceptionMapper: {}\n", e.getMessage());
        debugException(this, e, LOGGER);
        final String msg = null == e.getCause() ? e.getMessage() : e.getCause().getMessage();
        return fromResponse(e.getResponse()).entity(msg).build();
    }
}

After Change


                "WebApplicationException intercepted by WebApplicationExceptionMapper: {}\n", e.getMessage());
        debugException(this, e, LOGGER);
        final String msg = null == e.getCause() ? e.getMessage() : e.getCause().getMessage();
        return fromResponse(e.getResponse()).entity(msg).type(TEXT_PLAIN_WITH_CHARSET).build();
    }
}